﻿// See https://aka.ms/new-console-template for more information
//Console.WriteLine("Hello, World!");
//using System;

//class ThreeDigitNumbers
//{
    //static void Main()
    //{
        int count = 0;
        Console.WriteLine("能组成的互不相同且无重复数字的三位数：");

        for (int i = 1; i <= 4; i++)
        {
            for (int j = 1; j <= 4; j++)
            {
                for (int k = 1; k <= 4; k++)
                {
                    if (i != j && i != k && j != k)
                    {
                        int number = i * 100 + j * 10 + k;
                        Console.Write(number + " ");
                        count++;
                    }
                }
            }
        }

        Console.WriteLine($"\n共有 {count} 个这样的三位数");
   // }
//}